package Entity;

import javax.jdo.annotations.*;

import com.google.appengine.api.datastore.Blob;



@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class Document

{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long DocID;

    @Persistent
    private String key;

    @Persistent
    private String name;

    // Constructor
     public Document()
    {}
    public Document(String key,String name)
    {
        this.key = key;
        this.name = name;
    }

    // Getters & Setters
    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    /**
     * @return the DocID
     */
    public Long getDocID() {
        return DocID;
    }

    /**
     * @param DocID the DocID to set
     */
    public void setDocID(Long DocID) {
        this.DocID = DocID;
    }

}
